<?php
/**
 * Created by PhpStorm.
 * User: coffee
 * Date: 2018/1/2
 * Time: 上午10:17
 */

namespace App\Exceptions;


use Symfony\Component\HttpKernel\Exception\HttpException;

class GiftLessonAcceptanceExistException extends HttpException
{
    protected $message = '您已领取过课时了，每人仅限领取一次';
    protected $code = 'gift.lesson.acceptance.exist';

    public function __construct()
    {
        parent::__construct(400, $this->message);
    }
}